<%@page import="youleche.com.util.EscapeAndUnescapeUtil"%>
<%@page import="youleche.com.controler.controler.PageDataForBussinessControler"%>
<%@ page language="java" contentType="text/html;charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/WEB-INF/header.jsp" %>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>美乐车网-全国最大的车辆信息交易平台</title>
<link href="${ctx}/bootstrap-3.1.1-dist/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="${ctx}/css/pagination.css" rel="stylesheet" media="screen">
<link rel="stylesheet" href="${ctx}/css/home.css"/>
<link rel="stylesheet" href="${ctx}/css/userindex.css"/>
<link rel="stylesheet" href="${ctx}/css/userVehicles.css"/>
<script type="text/javascript" src="${ctx}/js/common/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="${ctx}/js/common/jquery.cookie.js"></script>
<script type="text/javascript" src="${ctx}/js/common/jquery.pagination.js"></script>
<script type="text/javascript" src="${ctx}/layer/layer.js"></script>
<script type="text/javascript" src="${ctx}/js/user/index.js"></script>
</head>
<%
	Cookie[] cookies = request.getCookies();
	if(cookies == null || cookies.length == 0 ||cookies.length == 1){
		request.getRequestDispatcher("noresponse1.jsp").forward(request, response);
		return;
	}
	String userName = "";
	for(int i=0 ;i<cookies.length;i++){
		if(cookies[i].getName().equals("youleche.u")){
			String cookieVlaue = cookies[i].getValue();
			String cookieJson = EscapeAndUnescapeUtil.unescape(cookieVlaue);
			userName = cookieJson;
			break;
		}
	}
	
	if("".equals(userName)){
		request.getRequestDispatcher("noresponse1.jsp").forward(request, response);
		return;
	}
	
	boolean isSeller = PageDataForBussinessControler.isSeller(userName);

%>
<body>
	<div class="body">
		<div class="backgroundBody">
			<%@include file="utop.jsp" %>
			<%@include file="unav.jsp" %>
		</div>
		<div class="mainBody">
			<div style="width:1000px;margin-top:10px;height:800px;">
				<%
					if(isSeller){
						%><%@include file="usmenu.jsp" %><%
					}else{
						%><%@include file="uumenu.jsp" %><%
					}
				%>
				<div style="width:799px;float:left;height:auto;">
					<%@include file="zclist.jsp" %>
				</div>		
			</div>
			
		</div>
	</div>
	
	
	
</body>
</html>
